package com.gdust.gkyx;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * ClassName: ServiceSearchApplication
 * Package: com.gdust.gkyx
 * Description:
 *
 * @Author syun
 * @Create 2025/1/26 11:08
 * @Version 1.0
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class) // 启动Spring Boot应用，同时取消数据源自动配置
@EnableDiscoveryClient // 启用服务发现客户端，使得当前服务能够向服务注册中心注册自己并发现其他服务
@EnableFeignClients // 启用Feign客户端，用于实现与其他微服务的远程调用
public class ServiceSearchApplication {

    public static void main(String[] args) {
        // 运行Spring Boot应用
        SpringApplication.run(ServiceSearchApplication.class, args);
    }

}

